package com.smforj.ssm.modules.wc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.smforj.ssm.wechat.web.controller.impl.CoreControllerImpl;
 

/***
 * 微信共用接口对象
 * 
 * @author Haijun Gao 
 * @date 2016-7-27 下午5:41:49
 * @desp http://www.cnblogs.com/saga5998/
 * @email 573107773@qq.com
 */
@Controller
@RequestMapping("/wechat")
public class WechatController extends CoreControllerImpl {

	/***
	 * 
	 *  
			//获取ticket，并保存到cookie 
			Cookie cookie = CookieUtil.getCookieByName(request, "jsapiticket");
			if(null == cookie)
			{
				Map<String,String> map = JsSignUtil.sign(oauth2url);
				System.out.println("set cookie ticket:"+JSONObject.fromObject(map).toString());
				CookieUtil.addCookie(response, "jsapiticket", JSONObject.fromObject(map).toString(), 6000);
			}
	 */
	
	
}
